<?php
class Default_Model_DbTable_UserTable extends Zend_Db_Table_Abstract {
	const ANONYMOUSE_USER_ID = '1'; 
	/**
	 * The default table name
	 */
	protected $_name = 'dict_user';
	
	/**
	 * @return Zend_Db_Statement_Interface
	 */
	public function findAll() {
		$sql = "select * from dict_user";
		return $this->getAdapter()->query($sql);
	}
		
	/**
	 * @param string $username
	 * @return Zend_Db_Statement_Interface
	 */
	public function findByName($username) {
		$sql = "select * from dict_user where username = ?";
		return $this->getAdapter()->query($sql, $username);
	}
	
}